<template>
  <div id="app">
    <van-nav-bar :title="title" left-text="返回" left-arrow />
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/search">搜索</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/friends">好友</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/setting">设置</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 0,
      title: '首页'
    }
  },
  methods: {
    // onclickLeft() { }
  }
}
</script>
<style lang="scss" scoped>
</style>
